gtkwidget: Expose gtk_widget_common_ancestor()
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 31 Mar 2017 15:16:47 +0000 (17:16 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 25 May 2017 14:25:58 +0000 (16:25 +0200)
This function will be useful in other places, such as determining the
widgets that must receive crossing events after pointer picking points
to another widget.

gtk/gtkwidget.c
gtk/gtkwidgetprivate.h

index 85628294f421e2452a67c55610941a27f1028eb0..915e54e63d55541a04ec5675be8a2fe817876480 100644 (file)
@@ -5649,7 +5649,7 @@ gtk_widget_size_allocate (GtkWidget       *widget,
  *   @widget_b or %NULL if @widget_a and @widget_b do not
  *   share a common ancestor.
  **/
-static GtkWidget *
+GtkWidget *
 gtk_widget_common_ancestor (GtkWidget *widget_a,
                            GtkWidget *widget_b)
 {
index 9c89ca900db4d3c8999daf7ea0c19e17bce43d18..ff53920430115689c8ec1c8ceef9ac1586a84d0a 100644 (file)
@@ -313,6 +313,9 @@ gboolean          gtk_widget_focus_move                    (GtkWidget        *wi
                                                             GtkDirectionType  direction,
                                                             GPtrArray        *focus_order);
 
+GtkWidget *       gtk_widget_common_ancestor               (GtkWidget *widget_a,
+                                                            GtkWidget *widget_b);
+
 /* inline getters */
 
 static inline gboolean